import { STORAGE_KEY } from './config'

export default {
  //getters
  userInfo(state) {
    if (!state.userInfo) {
      console.log(sessionStorage.getItem(STORAGE_KEY))
      state.userInfo = JSON.parse(sessionStorage.getItem(STORAGE_KEY))
    }
    return state.userInfo
  },
  locale(state) {
    console.log(state.locale)
    return state.locale
  }
}

